package model;

/**
 *
 * @author Dustin
 */
public class HigherLayer {
    private SendWindow sendWindow;

    public HigherLayer(SendWindow aSendWindow) {
        sendWindow = aSendWindow;
    }

    public void send(Object[] data) {
        for(int i = 0; i < data.length; i++) {
            sendWindow.getDataQueue().enqueue(data[i]);
        }
    }

    public void receive(Packet p) {
        System.out.println(System.currentTimeMillis() + " HigherLayer received frame: " + p.getSeq());
    }
}
